﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="LoginWindow" mc:Ignorable="d" x:Class="LibraryManagemtn.UI.Windows.Login"
        Title="Login"
		WindowStyle="None"
        WindowStartupLocation="CenterOwner" 
		Width="575" Height="430"
        AllowsTransparency="True"
		ResizeMode="NoResize" Background="{x:Null}">
    <Window.Resources>
        <Storyboard x:Key="UserName_Focus_FaceRotation">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="image" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(DropShadowEffect.Color)" Storyboard.TargetName="image">
                <EasingColorKeyFrame KeyTime="0" Value="Black"/>
                <EasingColorKeyFrame KeyTime="0:0:0.4" Value="#FFFF212B"/>
            </ColorAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(DropShadowEffect.ShadowDepth)" Storyboard.TargetName="image">
                <EasingDoubleKeyFrame KeyTime="0" Value="5"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(DropShadowEffect.BlurRadius)" Storyboard.TargetName="image" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="5"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="50"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FocusManager.GotFocus" SourceName="LoginForm_UserName">
            <BeginStoryboard x:Name="UserName_Focus_FaceRotation_BeginStoryboard" Storyboard="{StaticResource UserName_Focus_FaceRotation}"/>
        </EventTrigger>
        <EventTrigger RoutedEvent="FocusManager.LostFocus" SourceName="LoginForm_UserName">
            <StopStoryboard BeginStoryboardName="UserName_Focus_FaceRotation_BeginStoryboard"/>
        </EventTrigger>
    </Window.Triggers>
    <Grid Height="389" Margin="25.5,20.5,18,20.5">
        <Grid x:Name="Form_Grid" Margin="25,5,2.5,25">
            <Image Margin="7.007,19,6.197,-1" Source="/LibraryManagemtn.UI;component/Images/loginform.png" Stretch="Fill"/>
            <TextBox x:Name="LoginForm_UserName" Background="Transparent" HorizontalAlignment="Left" Padding="9"  Height="35" Margin="65,115,0,209" TextWrapping="Wrap" VerticalAlignment="Center" Width="409.053" BorderBrush="{x:Null}" Foreground="#FF06C2F9" SelectionBrush="#FF000102" CaretBrush="#FF06D2FF"  />
            <PasswordBox x:Name="LoginForm_Password" Background="Transparent" HorizontalAlignment="Left" Padding="9" Height="35" Margin="65,196,0,0"  VerticalAlignment="Top" Width="409.053" BorderBrush="{x:Null}" Foreground="#FF06C2F9" SelectionBrush="#FF000102"/>

            <Button x:Name="LoginForm_SignInButton"  HorizontalAlignment="Left" VerticalAlignment="Top" Width="150.5" Margin="311.073,278.884,0,0" Height="50" Background="{x:Null}" BorderBrush="{x:Null}" Style="{DynamicResource SIgnInStyle}" Click="LoginForm_SignInButton_Click" Cursor="Hand">
                <Border Width="148" Height="40"
					BorderBrush="White" BorderThickness="1" Opacity="1.0" CornerRadius="3">
                    <Border.Effect>
                        <DropShadowEffect ShadowDepth="0"
									  Color="Red"
									  Opacity="1"
									  BlurRadius="11" Direction="180"/>
                    </Border.Effect>
                    <Label x:Name="LoginForm_SignInLabel" Content="SIGN-IN NOW" FontSize="16" Margin="20.112,2.7,16.806,3.98" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Background="{x:Null}">
                        <Label.Effect>
                            <DropShadowEffect Color="#FFFF521F" BlurRadius="5" ShadowDepth="0"/>
                        </Label.Effect>
                    </Label>
                </Border>

            </Button>
            <Label x:Name="LoginForm_ForgetUserName" Content="Forget your username?" HorizontalAlignment="Left" Margin="318,155,0,0" VerticalAlignment="Top" Width="144" Background="{x:Null}" Foreground="DarkGray" FontStyle="Italic"/>
            <Label x:Name="LoginForm_ForgetPassword" Content="Forget your password?" HorizontalAlignment="Left" Margin="318,235,0,0" VerticalAlignment="Top" Width="144" Background="{x:Null}" Foreground="DarkGray" FontStyle="Italic"/>
            <CheckBox Content="Remember Me" HorizontalAlignment="Left" Margin="40,295,0,0" VerticalAlignment="Top" Background="White" Foreground="#FF7D7D7D" FontStyle="Italic">
                <CheckBox.Effect>
                    <BlurEffect Radius="2" KernelType="Gaussian"/>
                </CheckBox.Effect>
            </CheckBox>
            <Label Content="Not Registered? Create an Account!" HorizontalAlignment="Left" Height="25" Margin="290,375,0,-41" VerticalAlignment="Top" FontStyle="Italic" Foreground="White">
                <Label.Effect>
                    <DropShadowEffect ShadowDepth="0" Color="#FF7DD2E7"/>
                </Label.Effect>
            </Label>
            <Image x:Name="image" Margin="40,123.375,446,217.625" Source="/LibraryManagemtn.UI;component/Images/Untitled-2.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
                <Image.Effect>
                    <DropShadowEffect/>
                </Image.Effect>
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
            <Button x:Name="LoginForm_CloseButton" Content="Button" HorizontalAlignment="Left" Margin="476.998,-4.001,-11.497,0"
            	VerticalAlignment="Top" Width="38.499" Height="45" 
            	Style="{DynamicResource CLoseButtonStyle}" Click="LoginForm_CloseButton_Click"/>
        </Grid>
    </Grid>
</Window>
